import request from '@/utils/request'

export function getKehuInfo(_limit, _start, name_contains, agent) {
  return request({
    url: '/clients',
    params: {
      _limit,
      _start,
      name_contains,
      agent
    }
  })
}
export function addKehu(data) {
  return request({
    url: '/clients',
    method: 'post',
    data
  })
}
export function seeKehuById(id) {
  return request({
    url: '/clients/' + id
  })
}
export function delKehuById(id) {
  return request({
    url: '/clients/' + id,
    method: 'delete'
  })
}
export function editKehu(data) {
  return request({
    url: '/clients/' + data.id,
    method: 'put',
    data
  })
}
export function getKehuCount(name_contains, agent) {
  return request({
    url: '/clients/count',
    params: {
      name_contains,
      agent
    }
  })
}
